<script setup lang="ts">
import parent from './parent.vue'
const emit = defineEmits(['get-message'])

const props = defineProps({
  message: String
})

const sendMsg = ()=>{
  emit('get-message', 'this is son msg')
}
</script>

<template>
  <div class="son">
    {{message}}
    <button @click="sendMsg">SendMsg</button>
  </div>
</template>